package team240;

import battlecode.common.*;

public class RobotPlayer implements Runnable {

   private final RobotController myRC;

   public RobotPlayer(RobotController rc) {
      myRC = rc;
   }

   public void run() {
      while(true) {
         try {
             Robots myRobots = new Robots(myRC);
             myRobots.runRobots(); 
         }catch(Exception e) {
            System.out.println("caught exception:");
            e.printStackTrace();
         }
      }
   }
}